Skip to content

Conversation

@dcooney
Copy link

@dcooney dcooney commented Sep 14, 2023

Trac Ticket: 59350

This PR adds an additional check for wp_doing_ajax() to allow custom excerpt_length hooks in themes and plugins to run on the frontend when being called via admin-ajax.

The code in the following file was introduced around 6.3 and appears to be a global hook that doesn't consider admin-ajax frontend requests.
https://github.com/WordPress/WordPress/blob/master/wp-includes/blocks/post-excerpt.php#L86-L95

@dcooney dcooney changed the title Excerpt length Excerpt length fix for admin-ajax requests. Sep 14, 2023
@swissspidy
Copy link
Member

This change needs to happen in Gutenberg. See WordPress/gutenberg#55400

@swissspidy swissspidy closed this Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants